﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Reflection;


namespace TDB.Service
{
  [RunInstaller(true)]
  public partial class ProjectInstaller : System.Configuration.Install.Installer
  {
    public ProjectInstaller()
    {
      InitializeComponent();

      var version = Assembly.GetExecutingAssembly().GetName().Version;
      serviceInstaller1.ServiceName = string.Format("TDB Server {0}", version.Major);
      serviceInstaller1.Description = string.Format("TDB Server {0}.{1} - rev: {2}", version.Major, version.Minor, version.Revision);
    }
  }
}
